]> permondes.de Git - Analog_Engine.git/blobdiff - scripts/EP1 871102 Throwing a stone.LACE
Throwing a stone on earth, starting a rocket from earth
[Analog_Engine.git] / scripts / EP1 871102 Throwing a stone.LACE
diff --git a/scripts/EP1 871102 Throwing a stone.LACE b/scripts/EP1 871102 Throwing a stone.LACE
new file mode 100644 (file)
index 0000000..5fd5852
--- /dev/null
@@ -0,0 +1,22 @@
+# Throwing a stone on earth
+#
+# z'' = -g, with g=0,981 da*m/s^2
+# Initial speeds: v.z0 (vertical) and v.x0 (horizontal)
+
+coefficient.1(-1) -> -g    # set to 0,981
+coefficient.2(+1) -> v.z0  # initial vertical speed
+coefficient.3(+1) -> v.x0  # initial horizontal speed
+coefficient.4(-1) -> -z0   # initial altitude
+
+iintegrate (-g) -> -v
+  IC: v.z0
+iintegrate (-v) -> z
+  IC: -z0
+
+iintegrate (v.x0) -> x
+
+invert (-v) -> v
+
+output (x) -> out.x
+output (z) -> out.y
+output (v) -> out.z